Spread Windows Forms 17
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / SparseArray<T> Class / CopyTo Method / CopyTo(T[],Int32,Int32,Int32) Method
The one-dimensional System.Array that is the destination of the elements copied from the current SparseArray.
A 32-bit integer that represents the index in array at which copying begins.
The number of elements will be copied.
A 32-bit integer value indicatese the start index of which copying begins.


In This Topic
    CopyTo(T[],Int32,Int32,Int32) Method
    In This Topic
    Copies all the elements of the current one-dimensional System.Array to the specified one-dimensional SparseArray starting at the specified destination SparseArray index. The index is specified as a 32-bit integer.
    Syntax
    'Declaration
     
    
    Public Overloads Sub CopyTo( _
       ByVal array() As T, _
       ByVal arrayIndex As Integer, _
       ByVal length As Integer, _
       ByVal startCopyingIndex As Integer _
    ) 
    'Usage
     
    
    Dim instance As SparseArray(Of T)
    Dim array() As T
    Dim arrayIndex As Integer
    Dim length As Integer
    Dim startCopyingIndex As Integer
     
    instance.CopyTo(array, arrayIndex, length, startCopyingIndex)
    public void CopyTo( 
       T[] array,
       int arrayIndex,
       int length,
       int startCopyingIndex
    )

    Parameters

    array
    The one-dimensional System.Array that is the destination of the elements copied from the current SparseArray.
    arrayIndex
    A 32-bit integer that represents the index in array at which copying begins.
    length
    The number of elements will be copied.
    startCopyingIndex
    A 32-bit integer value indicatese the start index of which copying begins.
    See Also